/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024 —03 —17
 * Time: 21:33
 */
public class Student {
    /*

    private static String classroom = "bitclass1";//私有的静态成员变量
    //写一个public类型的静态成员方法来初始化获得classroom
    //成员方法都有一个返回值，构造方法没有返回值，只有public'+方法名（类名）
    public static String getClassroom(){
        return classroom;
    }


    public static void main(String[] args) {
        Student student = new Student();
        System.out.println(student.getClassroom());
    }
*/

    private  String name ;
    private  int age;
    private static String classroom;
    //实例代码块
    {
        this.name = "hyy";
        this.age = 18;
    }
    static{
        classroom = "110";
    }
    public Student(){
        System.out.println(name+age+"我想玩");
    }

    public static void main(String[] args) {
        Student student = new Student();

    }
}
